/**
 * 
 */
package hello.pde;

import org.eclipse.swt.SWT;
import org.eclipse.swt.SWTError;
import org.eclipse.swt.browser.Browser;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

/**
 * @author smart
 *
 */
public class HelloPDE {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		 final Display display = new Display();
	        Shell shell = new Shell(display);
	        shell.setLayout(new FillLayout());
	        Browser browser = null;
	        try {
	            browser = new Browser(shell, SWT.NONE);
	        } catch (SWTError e) {
	           
	        }
	        if (browser != null) {
	            browser.setUrl("http://www.eclipse.org");
	        }
	        shell.open();
	        while (!shell.isDisposed()) {
	            if (!display.readAndDispatch())
	                display.sleep();
	        }
	        display.dispose();


	}

}
